import service from '@/utils/request'

// @Tags ReqMessage
// @Summary 创建ReqMessage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ReqMessage true "创建ReqMessage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /msg/createReqMessage [post]
export const createReqMessage = (data) => {
  return service({
    url: '/msg/createReqMessage',
    method: 'post',
    data
  })
}

// @Tags ReqMessage
// @Summary 删除ReqMessage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ReqMessage true "删除ReqMessage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /msg/deleteReqMessage [delete]
export const deleteReqMessage = (data) => {
  return service({
    url: '/msg/deleteReqMessage',
    method: 'delete',
    data
  })
}

// @Tags ReqMessage
// @Summary 删除ReqMessage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除ReqMessage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /msg/deleteReqMessage [delete]
export const deleteReqMessageByIds = (data) => {
  return service({
    url: '/msg/deleteReqMessageByIds',
    method: 'delete',
    data
  })
}

// @Tags ReqMessage
// @Summary 更新ReqMessage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ReqMessage true "更新ReqMessage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /msg/updateReqMessage [put]
export const updateReqMessage = (data) => {
  return service({
    url: '/msg/updateReqMessage',
    method: 'put',
    data
  })
}

// @Tags ReqMessage
// @Summary 用id查询ReqMessage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ReqMessage true "用id查询ReqMessage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /msg/findReqMessage [get]
export const findReqMessage = (params) => {
  return service({
    url: '/msg/findReqMessage',
    method: 'get',
    params
  })
}

// @Tags ReqMessage
// @Summary 分页获取ReqMessage列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取ReqMessage列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /msg/getReqMessageList [get]
export const getReqMessageList = (params) => {
  return service({
    url: '/msg/getReqMessageList',
    method: 'get',
    params
  })
}
